Fix Possible Native Code Body Sleep Bug

Variables type was not declared, probably loading to inaccurate sleep timing.
Add Planes to SpacialHashBroadphase

Planes are now stored as static geometry and collided against all dynamic objects.