Fix template function generation. Return type should be created in TypePrinter.
CLI generator needs first function parameter.
Added missing new lines.
Changed comment
Fixed FunctionToInstanceMethodPass not skipping first method parameter.