`type` fix for React v0.12.

On React.DOM components, `type` is a string rather than the class definition.