Represent MdC parse tree as real objects

This will make it easier to lay out quadrats properly.