rt: get rid of rust_fn and replace with fn_env_pair plus a little cleanup.

Closes #1190.

Also, got rid of `rust_ptr_eq` since it isn't used any as well the `RUST_REFCOUNTED` macros.

Fixes #2667: alignment & wrong structure.