Disable assert and remove use of hasOwnProperty -- they are slow