Fix shops not loading and bad price
Make it easier to debug scripts, especially from coredumps
Fix OOB on 128-element commands
Add explicit check for mapless events
Fix a funny ASAN bug