Fix in derivatives of min_value/max_value to keep Arguments outside of conditionals.
Avoid rewriting n- to -n+ for manifold domains.
Merge branch 'martinal/topic-fix-issue-47'