Added correct foreach for multiset definitions, fixing #13, #14