added indexed keys to SegmentsBySourceJS in order to support numeric indexes

Accessing segments with numeric keys always fail due to the fact that such keys are always converted to numeric values. This patch fixes the behaviour of this wrapper in order to return a proper object instead of "undefined".