add ArrayPattern and ObjectPattern support
Merge pull request #17 from michaelficarra/patterns

add ArrayPattern and ObjectPattern support