s3-libads: Add function to search for an element in an array.