Fix deprecation of dict() forward looking for R18 in spec annotation