Efficiently collect sequential numbers and track the lower bound
Fixup ao_hash_map to permit shared_ptr as value