Add isHomogeneous and isHeterogeneous for Tuple