Correctly declare grad argument as const reference in edisp_kern constructor.

The grad argument was stored as a reference but declared by value. This led to the clang warning: binding reference member 'm_grad' to stack allocated parameter 'grad'.
Add parentheses around logical expression as required by clang.