SITE-397: Fixes for custom validators and for arguments in validation fu...

...nctions

- Previous version was directly modifying the arguments array, causing
  persisted changes to the model
- Finding the validation function was incorrect