Added clear() and isValid() declarations in Tuple.