Merge of cwmine's fix for finite-difference near the variable high and low.

1. Added a test for the capability
2. Small fix for array parameters.