Add support for square bracket shorthand lists

Adds support for a new shorthand list syntax. See examples in `test_utils.py`.

@jamesls please review.