Correct encoding transformation flags for type arguments arrays without dynamic element. Fixes #12572