Correctly serialize local actor refs from other actor systems. See #3137