Improve memdbg name output
* src/memdbg.cpp (register_name): Handle name changes. (memdbg_addRef): Handle name change.