Add UI hierarchy, change struct fields syntax

Struct fields are now declared in format "type id", like for functions
Added support for hierarchy of UI in tree demo