Renamed #contains to #has, added string casting for non-arrays