added copy method to RemoteArray