ENH: made qnwbeta allow a, b to be different types