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

Closes #168
Merge pull request #169 from mwcraig/write-bunit

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