Fix typo
Refactor template state and helper parameter handling

- Add KTemplate::setParameters() and getParameters() methods.
- Set template parameters through KViewTemplate::_fetchData() when rendering inside a view context
- Rename template state() function to parameters()
- Add 'layout', 'view' and 'total' parameters dynamically through KViewTemplate
- Remove KViewInterface::getState()