Resolves issue with model->dsql() queries.
echo $dsql->expr() to output expression instead of executing

Introduced "output_mode" parameter to determine style of toString