Fix for loops in sink context to actually be sunk.
Proper sink handling on JVM backend.
Minor optimizations in List/Array.