Improved TupleN.equals() implementation