Van der Waals gas density added.  Fixes #3244 .  Doco and test included

I believe it is right, and the test indicates it is right.  The test uses a finite-difference approximation to the derivatives.  Although it looks complicated on first view, going slowly line-by-line you can see it's quite logical.