merge proxy variables in scan search (respects the context when call get_docs on ActiveModels)