Add late class validation warnings for statics

ES6 classes won't have an early validation step. Therefore I added some
extra validation later on in the process. These would've normally have
been caught by createClass in classic React.
Merge pull request #2767 from sebmarkbage/moderntypevalidation

Add late class validation warnings for statics