Fixed off by one bug when deserializing static arrays.