Fix collision detection bug

This is probably marginally faster, but the main point is that it
detected spurious collisions (e.g. colliding with a node completely
above the moving collision box, when moving along the X axis)
Make full collision info available via lua api