Nested Tree List is broken

After template refactoring nested tree list is broken:

Object Action e batch action are fixed with this pull request, 
collapse and expand icon with javascript are still broken

p.s. sorry for bad english