add __repr__ function to case states and indices and workaround case:52230