Fixed bug in copyInstance target array size when doing partial copies