Changed facets/filters key-value loop

Do not use PHP functions like key(), if you don't have to. It leads to overhead.