fix EitherRightEqual, EitherLeftEqual
Merge pull request #538 from xuwei-k/either-right-left-equal

fix EitherRightEqual, EitherLeftEqual