[#74948172] New method Template#needed_data

Template#needed_data returns an array with needed data for rendering.
Array has
- strings for root variables needed
- hashes for objects