Implement threequals so that Maybe can be used in case expressions