Fix IllegalArgumentException caused by null arrays

When a DynamicsWorld is started and updated with no bodies in it, mConstrainedLinearVelocities in DynamicsWorld (among others) is null. This causes ContactSolver to throw an IllegalArgumentException.

To fix this, all null arrays are instead initialized as an empty array.

The test has also been updated. It fails prior to this change.