[WIP] Configuration Trees

(See https://trello.com/c/wpI2gX5I/13-configuration-trees.)
[You don't have to reply to these. See my main comment.]
Still the `ClassCastException` issue, plus a bunch of extraneous allocations.