AMBARI-6822. Privilege removal API should correctly process arrays.