Fix PrepareEmit error when evaluating delegates

The delegate class did not use the internal cache flag as other type definitions which caused the next evaluation to fail.