This function loads and returns intervals stored in a named intervals set.
If intervals set contains 1D intervals and 'chrom' is not 'NULL' only the
intervals of the given chromosome are returned.
Likewise if intervals set contains 2D intervals and 'chrom1', 'chrom2' are
not 'NULL' only the intervals of the given pair of chromosomes are returned.
For big intervals sets 'chrom' parameter (1D case) / 'chrom1', 'chrom2'
parameters (2D case) must be specified. In other words: big intervals sets
can be loaded only by chromosome or chromosome pair.