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

... fixes overeager transparent keyword optimization

See additional comments in #257.
These three tests will fail using the regex in master because they won't match the conditional that looks for `gradient(` on line 316 of the PR.