Add getFiniteSupport and test it for GEM distribution.

@lileicc @cberzan @chrisgioia64 

getFiniteSupport() has been added and tested for GEM distribution in this pull request.
Notice that this pull request must be merged with #295 at the same time, otherwise there will be a period that the BLOG repo could not be compiled.