Add magic methods for evaluating length and truth of an IntervalSet instance

Those are magic methods I thought were missing:
* __len__ to get the number of elements in the IntervalSet
* __nonzero__ to get the boolean value of an IntervalSet