Microtemplate fixes

Could this have been intentionally done. When sync is called, even though the doc is replaced in locals, `this.doc` for a field still references the old doc. So if cur_frm.refresh_fields is called instead of cur_frm.reload_doc, since `this.doc` points to old doc, it would likely display old values.
This explains why value was fetched using frappe.model.get_value instead of this.doc in the first place.