Cache array lengths in for loops
Default behavior changed for missing transitions