the type should indeed be case insensitive everywhere.

Adn this should be tested