Allow no-op casts in expression trees on parameters

Fixes issue #169.