Make operator== non-member for greater symmetry.

Thanks to David Blaikie for the suggestion.