Made self comparison checks work on object fields.
Added unit tests to if else and same checker.