Fixed #395: fixed conversion between MCOIndexSet and NSIndexSet