The generated function metadata sometimes duplicates the function's name (at the very least, for bare functions this is true). This should be fixed.