Check length of lists in __eq__ of Expr