Disables callback optimization and sets a custom this context.
Required for callbacks within loops, that use the same code but have different contexts