Handle commands that dump something

Fact: Some commands dump out their result, instead of returning it in a proper way.

Effect: Currently, the doctrine:query:dql doesn't work for example.

Fix: The idea is to catch the dumped result via ob_* functions, and consider it as the output of the command.