Finished SMPrimitiveToPrimivie and SMValueToObject.

Converts SMValue to Java primitive/objects. Used to cast between
SMCondition and StackMobQuery objects.