florianholzapfel/express-restify-mongoose — pull request #27 by cherbst (2013-11-17 21:16:08+00:00)
Title: fix copy of array options

The previous code copied arrays in the option object by reference.
This was modifying the original arrays. In case of a passed middleware array,
this lead to multiple calls of cleanQuery if e-r-m was called on multiple models
with the same option object.