Replace $ref & $dynamicRef support / RefResolver with the new referencing library
#1049
+1,052
−2,113