Change the component load order for repl.

Fixes #1424.