improve detection of tuple constructor functions