Serializes this object to an immutable list of bytes.
List<int> toImmutableBytes() => toMutableBytes();