Add automagical type validation for object properties