Added tests for IndexSpace dtype casting and updated IndexSpace comparison operator to include dtype test