Added support for parsing primitive objects (e.g. Integer, Double etc.)