[cvz] Save/Load weights fix when using mask

The parameters of each modality are now stored as well when saving the
weights. The "non standards parameters" like padding are still not
saved.