Changed the code for primitive types to primitive Objects.
Added Support for primitive Objects Lists