Fix for referenced content usage checks. Now allows for trees of
referenced content.