This handles enumeration units that are defined within the stream (not within a header).
will be called when writing streams.