Add mdb::TypedCursor for type-safe access to mdb
less asserts in prod builds