Added transform capability for fields before compare

Can be used to get diff at a higher level in case of nested objects