Fix #31
Fix pattern bugs involving meta-targets and braces
Merge pull request #32 from kirbyfan64/dev

Fix #31