adds support for array types
Fixes generation of methods (incl parameters with correct types). TODO: also take visibility and state of methods into account (like 'private static final').