Fix preselection of components from another component

  Changing the (default) selection of another component per script
  was broken. If the select code comes right after the component loaded
  it could be that a late loaded component overwrites the set value.
  Now we do the preselection after we loaded every script
  (also this was the behavior in older versions, maybe got broken
   while refactoring in the past).

Change-Id: Id6ec22da68d92c8ec764ff2cc2f6062880e29c51
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>