avoid template bloat for checkLen

- reduces libphobos2.so by about 5kB
Merge pull request #1 from MartinNowak/checkLen

avoid template bloat for checkLen