Refactoring RT, moving all data classes to .data and adding all RT interop functions as special cases