[Fix #705] Rework macroexpansion namespace display logic