properly decode arrays ending with a value separator
add extra regression test
Merge pull request #2 from edmodo/master

Fix bug when decoding multiple arrays