Pass the right owner to deserializedFromTemplate

A template can have serialized objects with different owners. 
This is because some objects might come from an external templates and were inserted in the template to resolve data-params.

Still need to write specs for this, it's in a card.