A Ruby helper for scaling Arrays, Ranges and Sets