Update Doxygen style for implementation
Move debug<> into the namespaces directly inside its include file

The issue was that Doxygen read all the files and put debug<> in the top
level namespace.
But the debug<> file was also included from inside a namespace, making it
to appear at 2 different namespace levels in the documentation.