Add doc values support to _parent field

PR for #6107
does it make sense to assert that `parentTypes.size()` is either equal to `0` or to `typeBuilders.size()`?