Chris, Yes, foreach appears to be slightly buggy in 0.9.8.5 - this is because the semantics is in transition a little bit and the 0.9.8.5 is a compromise between the old semantics and the new semantics as far at the "foreach" implementation goes. In 0.9.8.x SVN your example appears to work OK. Aleksey