[DDMD] [refactor] Move ForeachStatement methods in opover.c into free functions