Added SubprocessMixin to util.
Handled missing keys in _to_legacy().