set hooks for template parsing as late as possible
make sure that hook arrays exists
dont parse template blocks if empty child template is passed
fix issue with multi hooks
clone template before running parent one