Fix getSubset() method for issue processing/processing#1979

Fixes the getSubset() method in IntList.

This solves issue processing/processing#1979.