Added as_dict() to all models and made the set.as_dict() and list.as_dict() invoke them as well.