Changed architecture to support all kind of java references.
References for primary type arrays are supported.