F/rewrite groupset

Added groupset rewrite object and added tests for rewrite functionality.
if it's groupset, the rule name shouldn't be multiset either.