Fixing isValidClass and isValidElement

The terminology is confusing right now.