EffectInstance::getRegionOfDefinition: bug fix
fix asserts
remove useless double-copy