Fix use of offset and exposure in GLM

This PR allows offset and exposure to be used simultaneously, and raises an exception if exposure is used when the link is not the log function.

May need rebasing, I don't know what's going on with the rank, etc.