[core] gc engine: lazy loading for graph rules