Refactor mrb_obj_eq() func in object.c.
Merge pull request #1320 from suzukaze/refactor-object-c

Refactor mrb_obj_eq() func in object.c.