geobackend: fix possible nullptr deref
luabackend: remove dead returns
disable dead timing code
remove dead store
Merge pull request #1004 from zeha/cleanup

Misc. cleanups