Added test for code generation for methods having a result (array) parameter