For a given PP_Var, returns the RawVarData associated with it, or creates a new one if there is no existing one. The data is appended to |data| if it is newly created. The index into |data| pointing to the result is returned. |visited_map| keeps track of RawVarDatas that have already been created.