added a method to check if a qvariant is an indexlist