Fixed typo and added comparison operators for IndexSpace

@vdumoulin