Can't write one-element ndarray in HDF5

Created by: tiagofrepereira2012

Issue copied from here: https://github.com/idiap/bob/issues/165