Try to fix wrong stripping of request variables

- the list of walked array keys can not be static as this can prevent of
  processing of some elements
- we need to flag all processed elements as after reordering they can
  come again