Fix ordinal scales with singleton domains.

Fixes #1717. Turns out, -1 % 1 is 0!