Add memsize calculation for EXTCODECOPY