bootmem: add debugging framework