Adding support for primitive types

Added some support for primitive types int, boolean, etc...