Fix assignment of values into arrays nested inside of subclasses

of ArrayObject.

This fixes issue #1653