Add get primitive method in JValue