fix error when ~for body produces 0 values

- closes #4
- thanks @khinsen
- add tests