[#32072] Better display the dump of query using $query->dump() method.

Tracker: #32072
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32072&start=0