minor fix to match function to handle array

match('a', ['abc']) should return 'abc'
Merge pull request #21 from anshulverma/master

minor fix to match function to handle array