Add putM for mutable types in State