Initial support for arrays and generics for java code gen