Implement basic transforms and string conversion

The basic transformations are:
- remove empty elements (`(-NONE- *)')
- simplify labels (`NP-SBJ-1' → `NP')
- add root element