Added a new compiler pass to automatically register persistence sessions