Fix mergePatch bugs

- removing value null from target failed
- pointer was pushed to changed array when removed undefined value