fixes #17510 inappropriate property iteration on array