Jacobian: Re-enable and improve Jacobian determinant and inverse

Now the code checks if values have been given for the group name parameters, and avoids asking for grid function pointers if they have not.  This restores backward compatibility with parameter files which do not use these parameters. See previous commit 9b459add6db98620df418ef12d61c932cec9bf05.