Fix template function generation. Return type should be created in TypePrinter.
CLI generator needs first function parameter.