make loop-locals a vector of the locals names, clean loop-locals in cleanup2