Fix uppercase type validation errors

Validation type keys are now normalized to lowercase. Also added more tests for this coverage.