Code gen error with raw object types