Fixes #1163 - Include the xref as well as the defaultParentCategory when determining subcategories for a given category