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

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