wip-442: Token aware writes

Boxes are *mutable* and are escaping the private scope of this class. Doesn't it look very fragile? The basic invariant of this object (= objects stored in the queue are in the right order) can be very easily messed up from external.