Fix: raise an error if an array is inserted into an objefield which is n...

...ot of type array