Improve macroblock internal debugging functions, clarify a few #endif