[POC] Class based indexes

I'd use a classmethod to provide the default index type (I think that's cleaner than resetting the attribute in the initializer)