Add get_index() to Variant