StreamRecord serialization updated to support basic array types