avoid zero-size arrays
Merge pull request #21 from eddelbuettel/bugfix/zero-size-array

avoid zero-size arrays