Used the modified $getOwnPropertyNames, so that we get symbols as well.