fix for looping over builtin arrays in a tree