fix an issue where generated modifiers sometimes had the same field listed in both `$set` and `$unset`; closes #139