Fixes storage_encoding for CategoryType

Also applies key_fill_value argument to fill_value attribute