Add treepath squashing, and different parsing/to string for init paths and fragments.