Added object method for optDoubleObject (returns Double vice double). Added similar methods in JSONArray. Added test methods.