Fix bug with interpretations' label and add script to generate tree as JSON

Interpretation Labels were of the form 101-Interpretations-22(b), when they should have been 101-Interpretations-22-(b) (to match the "parts" field). This fixes that.

It also adds a script to generate the regulation tree as json (in the style of the layer generator).