Fix #177: compatible Eq and Ord instances for Method.