Allow [] in arguments for TomDoc

Fixes #167