Make units case-insensitive whenever possible.

When there is ambiguity due to case-insensitivity, it switches back to
case-sensitive mode for that specific unit.