minor fix to match function to handle array

match('a', ['abc']) should return 'abc'