regarding on these assignments to arrays and dicts and the future functions to get length and surely many more in the future, I think that
@MacroDroidDev
should abandon visual configuration screens for these things because theg will grow unwieldy (eg. the use of a variable to specify a key in a dict or an index in an array)
and instead think carefully a small expression language whenever a variable specification is needed
eg.
a_dict[a_string_var] or a_dict[${a_string_var}]
a_dict["this is a key"]
a_array[a_integer_variable]
a_dict["a_key"][a_integer_variable_to_index_a_array] <- this can continue deeper
a_array[#a_array] where #a_array is length of array (or dict too)
etc.
ie a kinda Python-esque way (or could be like Groovy)
in this scheme the old way of [v=a_variable] must be deprecated sometime