Initial API refactor for prefix scanning on types.
Updated tests and implementation for type prefix scanning