Clone rules before modifying.

Fixes #47.
Fixing broken test with _.isArray() test.
Merge pull request #48 from baconmania/master

Clone rules before modifying