Ban d3.max and d3.min across the project. Close #843

Close #843.
New version of #879 

Bias towards adding messages in the tests at the very least explaining that a certain usage works.