Common serializer for output of tasks
It would be good to provide common serializer for task output to avoid hacks like custom to_hash functions:
The serializer should enable for custom serialization methods for classes to tune the behaviour. E.g. output for host should always include facts.