Split refs table into function_refs, macro_refs, type_refs, typedef_r…

…efs, and variable_refs.

Split decldef table into function_decldef, type_decldef, and variable_decldef.