Fix StrMap.foldM implementation

It previously did not work correctly with monads that deferred
evaluation (like Eff) because k had the wrong scope.  This adds an
explicit closure for k.  Fixes #18