add to/from dict support for auto_npar and auto_gamma