Fix assembly copy logic for unity_aot