For instance org.apache.lucene.analysis.tokenattributes.PackedTokenAttributeImpl will be considered as a CharTermAttribute(Impl) and serialized as such.
Our implementation, but also our tests, need to be updated to handle this case.