handle primitives in array for heap objects
implemented hasCode and toString
Merge pull request #28 from danielshaya/master

handle primitives in array for heap objects