Performs in O(1) instead of O(n) on class name length in the case of a
non-array type.