Always read the type from arrays, even if their size is 0.
Added support for repeated fields deserialization in Java.