Namespace fix for Query::__toString()
Implemented backtrace printing. Closes #2.