DCT-II support
- added support for taking derivatives with the DCT-II on its half-index grid
- improved error messages to support this extension
- improved endpoint-finding code and added a parameter to bypass solving for the endpoints, in case they are not needed