move check_combed from CombMask to MaskedMerge

also, add horizontal_dilation into CombMask.
add new function 'IsCombed'

also, some cosmetics.