Oh, and it's nto actually ref counting — these are restricted to values of 0 or 1. That should be made explicit; why not just have it be set membership instead of a map?