Move list equality to the Cons class