fix nc4 (jni) to read nested structures