fix constructor and Properties of Model

`properties` of a `model` is a map (not a simple list). The `getSubDocuments` method was not able to iterate over it.