Fix tests/serialize/bug64146.phpt

I'm not sure if references to objects may be ignored. I think in some cases references to object may behave differently from objects.