(validation-callback) Action arguments validation

With this commit we allow specifying a callback for validating action
arguments. These callbacks are then executed when the
ValidateActionArguments function is called.
New function.