Fix #1624: Implement case preservation in class reflection.