Erm, where does the downcast happen?  Is this actually a violation of the spec?  It seems like you're going to end up returning an #ordered_shard out of mem3:shards for "dbs".