Add check if typeaheadSource is function or not to fix onlyTagList true

typeaheadSource can be a function or object, if object needs to just check if typeaheadSource is $.inArray, else needs to call typeaheadSource and check if returned value is $.inArray