hold a reference to a type while querying if its registered