[AS7-6434] Reject resource transformers

Similar to discard but gives an error/warning.
Make the discard and reject checkers created from the builder apply recursively to children