Added is_num and is_str.

Eliminated separate type_convert module, moving its functions into type_num and
type_str.