fixed parser for complicated variables

e.g. var Array< Array< Actor > > foo<someMetadata>;