Fix bug in DatastoreContext copy constructor