Previously, I could use this piece is a custom class
func update():
for i in array:
self[i] += 0
But after moving to 3.1 alpha, self[i] does not seem to be allowed in any form when its inside of custom class, giving "Can't index on a value of type ''" error. What's the replacement for it now?