Use the new API for creating an OpaqueType.