Correctly serialize local actor refs from other actor systems. See #3137
Cleaning up the ActorRef serialization according to review. See #3137