- Fix transform() to handle reference ids case-insensitively