repairs a bug in rewriterule engine: constructor cannot be used as a pattern
Merge pull request #4 from tiliang/master

a bugfix in rewriting rules