Scripting: Allow struct methods to return dynamic arrays

Allows a member function of a struct to return a dynamic array, just
like in a regular function declaration.
Merge pull request #191 from gurok/331_struct_method_dynamic_array

Scripting: Allow struct methods to return dynamic arrays