fixed bug when converting array of primitves to CrateArray. added array
of primitives and their respective wrappers as simple types. added test
cases