Fixes to projectiles and the undead

* Fixed projectiles not registering block and entity hits properly
* Improved the undead AI in terms of navigating into sunlit areas
* Fixed #1137
* Fixed enderpearl loading
There should be at least two spaces between the code and the double-slash for the comment. To separate them more visually.