bug fix: arrays were unserialized out of order