THRIFT-2172 Java compiler allocates optionals array for every struct with an optional field
Patch: Andrew Gaul