Apply component and mixins specs deterministically
Fixes #1589.