Change Model iterator to conform to dict format

This change allows a Model instance to be used as parameter to the dict constructor.