Update dump.php

Apply one single change on dumpTemplate method to be compatible with JRegistry (Joomla 3.2) and the new Registry namespace (Joomla 3.3).