Scala's Tuple2s are specialized, so I need to be able to recognize the
different specialized variants of the class.