[fix] resolveRef - $c - go to next only when fn from prototypes