metomi/rose#304: improve value macro
Merge pull request #412 from benfitzpatrick/304.range-derived-type

metomi/rose#304: improve value macro. Closes #304