Fix the copying logic to copy rule_type properly
Currently after we merge, we copy the rules of the merge request over so that we know what the rules were at the time of merging.
We are missing some information, and now need to include 'rule_type' and report_type
when finalizing the rules.
Edited by Marc Shaw