Hotfix for #6089 - ArrayObject serialization doesn't restore `protectedProperties`

This is a hotfix for #6089