rt: get rid of rust_fn and replace with fn_env_pair plus a little cleanup.
rt: take into account alignment for debug_opaque. Closes #2667
rt: Fix alignment in debug_opaque