fixed the getstatistic api call -- should return floattype by ref