solver: added copying of mapping array