More informative error messages for Context::getParameter() and setParameter()

This PR causes `Context::getParameter()` and `Context::setParameter()` to return the name of the incorrect parameter passed to them to aid debugging.

The previous error message just printed
```
Called setParameter() with invalid parameter name 
```