Add support for sparse numerical quadratic functions.

Disable tests for numerical linear/quadratic functions for now
as the display differs.