Move setupIterationTemplate to expandComponent

At deserializedFromTemplate is too early in some cases.
If there are two nested repetitions the inner one might setup its iteration first and that will destroy the component tree that is needed for the outer repetition to create its iteration template.
Change objects to content in some specs