trim: replace {min,max}Mass arguments by range and mark {l,r}trim as deprecated
Merge branch 'trim'