Add auto management of template & string ID and error checks

* When a block that require a template ID doesn't have one, auto associate an ID when adding the block to a parent.
* Add a function to set directly a string in a block (manage string registration in rootBlock)
* Add more checks about indices about registered template & string and template in template and template array in template array