Support for custom id field (as a raw type)