freeze model instances so setting undefined properties will raise error.