Allow mean sugar to work with REALSXP, INTSXP, LGLSXP (CPLXSXP to come) (#134)