Fixes #3056: add the possibility to clone rules