Split Debug/Dump extensions

So other dump functions could be used, and a difference between dumping
and passing to the debugbar can be made.