fixes bug in deepClone and deepEquals in how they handle nulls