Fix: allow @type as string in addExistingData