Improve the speed of filterGroup() function.

https://code.google.com/p/esprima/issues/detail?id=413