remove stray comma
fix loopfiles duplicate detection, also allow some more math operators to have >= 2 arguments