Its not a requirement of the output here to be robust - its used for debugging, and adding a hard dependency is not an option as @guilhermeblanco  already said.

If you introduce an interface + debug implementation (maybe even reuse from the DBAL command) and then implement the serializer dumper in your code then I am fine, but we shouldn't add this as a suggest dependency just because it is used in a debugging command that is used by hardly anyone.