Some functions may be called on a reference, and apply their procedure to them. Beware that a ref variable does not necessarily store a reference- in the GECK it may also store a base form. For example:
ref MyRefVar set MyRefVar to WeapNV9mmPistol ; Base form! if MyRefVar.IsQuestItem ; !INVALID for base forms! .. if IsQuestItem MyRefVar ; Valid for base forms ..