[BUGFIX beta] Better error for object set on ArrayProxy

This is a fix for issue #3869. Not sure if `_setupContent` needs it as well, but I added it. Ran the tests and everything looks good.