Updated Model.to_dict method to call list fields `to_dict` inner models method.

This made possible to serialize a model with list of models as json with
the `to_json` method.

refs #6