fix bug in SeqOps#qmean
add Natural.apply for String input
add Integral[SafeLong] instance