Merge pull request #6 from kitskub/master

Fix IllegalArgumentException caused by null arrays
Clear linked bodies at the end of the tick, not the update
Clear mFreeBoxIndices to remove the indices that were removed from shrinking