Refactor the model initialization step & generalize attributes inheritance on non array.
Merge pull request #979 from jails/refactor/model-inherited-attributes

Refactor the model initialization step & generalize attributes inheritance on non array.