Fixes for correct writing of cloudtype.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>