Now detecting when rules reuse linear facts. Also compile those rules to persistent rules so linear facts work with retraction.