ScalaCL3: fixed ordering of captured variables