simplifies transparency check to only look for zeroes in all parameters....

... fixes overeager transparent keyword optimization

See additional comments in #257.
This only skips if the match contains the word `gradient`.