Allow applyTo to be a custom function so a field can have complete contr...

...ol over the payload's value. Clearing lookups with applyTo set was not working otherwise.

#MBL-10452

@CHenrie Please review