fix setJointLimits

As @patmarion found, after we call `setJointLimits` and `compile`, the joint limits are not changed. This is because `compile` takes joint limits in each `RigidBody` as the joint limits. So we need to change the RigidBody joint limits in `setJointLimits` function