Added ignoring fields, added extra testcases, fixed nested/refs, added auto-sync for findXAndUpdate functions