Fixes failing resource queries for types including a double colon ('::')