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