behavior of contains() function in v8.5

Hi All,

We're in the midst of upgrading from 7.5 to 8.5 and I've noticed a quirk in how the contains() function works that's causing a couple of our 7.5 applications to break.  If the array in contains(@arr,value) only has a length of 1, the contains() statement will return false for matching values where the data type doesn't match.  If the array is a true array containing multiple values, then it doesn't seem to care about data types at all. 

Please see attached protocol and screenshot.  Any guidance?  Is this a known bug?

Best regards,

Scott

contains and datatype.JPG