fix arrays/records copying/cloning