This isn't comprehensive yet, however it caught two bugs: 1. parseNextType should operate on "rest" in most cases, not "tok". 2. We must eat the "]" map separator before moving on to the element type.