pattern matching for GroupWithMeasures

example: case GroupWithMeasures(key, measures) => ...
Merge pull request #176 from vn971/master

pattern matching for GroupWithMeasures