make collision callbacks work as entity methods

* fixes a problem with global collision callbacks/signals (this has been broken for a while apparently)
* added support for collisionWithEntity() and collisionWithVoxel() methods on entity scripts