Optimizes imgmap apply() function. Less allocations and
function calls in pixel transform loop.

Fixes imgmap match() function to correctly return true or
false if the filter rule defines an absolute color channel
value.