Implement type and sub-type based identifier lookup