fix properties rewrites
fix incorrect field validation when field is undefined
fix behaviour of field with type id
fix incorrect set model id from data
fix chech empty for field with type array
fix tests for isEmpty case