fixes #1: fix parsing empty arrays