Fix complex types validation in InheritableBehavior with child models

Fixes https://github.com/CakeDC/utils/issues/103. Tests added.