Fix bug with __eq meta-method.