Optimization of IORefs and STRefs - comparison to g++