Use union types to make For/ForIn statements simpler.