Remove RETURN DERIVED for persistent rules/processes.
Fix broken optimization module for init rule.