Optimized the `getTileOffset*` function by ~20% !

http://jsperf.com/indexed-array-access-versus-cached
(Should help draw stuff a little bit faster when using dynamic
rendering)