Vh/bugfix/support zero length arrays

Closes #17 with some additional tests and changelog.

@dbelow looks good to you?