Fix collection _compareAndCHange for nulls and objects