Added the possibility of having array class references for non-primitive types.