[AS7-6434] Reject resource transformers

Similar to discard but gives an error/warning.
Make the discard and reject operation transformers apply recursively to children