cleanup some scan-build warnings
forall edges/vertices faces/vertices cases now work inside functions