componentIdWithNullable

Gets or registers the id of a component of type T, adding the HOLDS_DATA role if T is not nullable.