prevents owner chain corruptions in the assert macro
Merged in Eugene Burmako's fix for owner chain corruptions in AssertionsMacro.