improve datatype sp<->hdf5 convert

Change-Id: I6c822d01003d77ebd9cc45146a7922ebb4328ead
Signed-off-by: YU Zhi <yuzhi@ipp.ac.cn>