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