More flexible scale.nice. Fixes #1088.