Support for ObjectId type in components or references.