Optimise getTileInfo()

getTileInfo() ~1.5x faster
getSmoothLight ~2.0x faster
This should be fixed by using the standard version of assert that's optimized out in release builds.  That will break a lot of things that depend on the non-standard behavior though.  Maybe this should just be commented out?