Added basic model validation for primitive / stock types.