How does mangling_args work for types with parameters

Cross linking to other thread.
@sklam do you have any recommendations for a compression algorithm? I tried with zipfile with decent results but I wonder if there’s anything smarter that comes to mind.