Fixed make_func_declarations, implemented convert_type, added split_params