Array variable serialization fixes