Minor thinkos/bugfixes and a debug helper.