Fix tests/serialize/bug64146.phpt

Yes, I agree that an object and a reference to an object is not the same. However this is how it was implemented previously and not doing it this way breaks one of the serialize tests.

If you're okay with the behavior change, I can drop this check.