In getJavaWrapperType() added check for array types in order to avoid wrongly capitalizing arrays of primitives.