Apply component and mixins specs deterministically
Fixes #1589.
Merge pull request #1601 from gaearon/apply-component-and-mixin-spec-deterministically

Apply component and mixins specs deterministically