Factor out type string parsing to TypeParser class, use PHPDoc standard notation for specifying collection types