Use flags from ArrObj/ArrIt when constructed from ArrObj/ArrIt

Fixes zend test.
I don't include a test, because that zend test is pretty straightforward for this one