QtQml: Pass the alias target object index when creating aliases
We already know the index of the target object when resolving an alias.
There is no need to look it up again by id in the named objects table of
the component. The named objects table is going to move, and this way we
don't have to deal with it here.
Once we pass the target object index, the component is not needed
anymore. Drop the parameter.
Task-number: QTBUG-147816
Change-Id: If8a1e7d106b40ad771a8359f39c0e3cf06873c51
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>