Fixes loading modules from transpiled es6.

In many es6 transpilers, `export default Component` creates the syntax `module.export = { default: Component }`. This adds a check so that if a `require`d component contains a `default` property, it is used.

We could be paranoid and check `typeof component` to see if it's a `function` or an `object`, but that's probably overkill.