optimization: added flags to disable ref/move optimizations (currently via O2 and O3 respectively)