Make ListType a sealed trait.