Turn singleton ranges into literal constants

Fixes #27.

@emilaxelsson, could you please check this.