avoid template bloat for checkLen

- reduces libphobos2.so by about 5kB

I don't mind if you just squash this into your pull request.