fix deserialization bug for array with size (thanks kulich)