Companion
object Companion
Layout-output id codec.
IDs pack three values into a single Long:
bits 0-31: per-tree key id (from getId)
bits 32-34: OutputUnitType (3 bits; values are 0..4)
bits 35+: componentTreeId
encodeId and decodeType are inverses — keep them in sync if the layout changes.