Fix sdb_array_contains() issues