Tiny fix in Class.getClassType()

I think that was a typo. But the function worked incorrectly. Now it's fine and I've made some unit tests for it in `Reflection`.