Added function 'resolveEitherDef' to resolve a reference to a type of IO (Either String Reference)