migrate to using the newly merged get_function_address

Do some restructuring to make sure that gfa is batched up and called at
the end. Also update rgc_printer. 21/28 tests now pass.