fix quadgk to integrate f(x) returning an arbitrary normed vector-space type (as alluded to in #1235)