Throw nonlinear_expression when denominator is not constant

Fixes #26