Some work on relations and global variabels
Make codegen call rm_saveRel