If data has a unit, put it in FITS header when converting to HDU

This would close #168.