Fix: raise an error if an array is inserted into an objects
field which is not of type array