Use enable_if dispatching for serial message_type
Fix render build failure for +debug no-editor
Add u_mem.h to mem.cpp to fix memdebug=1 build