Updated regex pattern matching and added tests for parsing array<..> directives.