fixed a bug with allKeys used instead of allValues in predicateFromStringOrDict: