Remove some invariants and deadcode

These are not necessary if we enable type checks. Static or dynamic.

They're distracting my greppability.

Also, some dead code in shallow rendering.
Merge pull request #2552 from sebmarkbage/cleanupinternals

Remove some unnecessary code in ReactComponents