Fixed recursive copy() call when a map is passed