Allow empty array notations

This commit allows empty arrays to be parsed. It is based on https://github.com/doctrine/annotations/pull/5, but it adds a test on top of it.