Adding to_dict() methods for Listener and Healthmonitors.