Add a macro to make range construction easier

Closes #25.