Add strictUnits option, add tests for legacy behaviour