DYN: Fixed bug that tried to encode port buffers as struct instead of array in serialisation.