jsval_to_NSObject: supports null and..

chipmunk bindings using jsval_to_long for cpGroup and cpCollisionType