Added IORegionRef, fixed a problem where resources could be returned from a reset context.