fix ramp trimming in smoother
added VectorWrapper alternative for clang (thanks to ahundt)