This change moves the addMethodToGlobalList function to be a
private member function of the GlobalMethodPool class. This
is a preparatory step to allow for de-duplication of inserted
methods.
Two public methods are added to handle the existing use cases
for adding methods to a global list: addMethodsForSelector
and addMethod. The former is required to avoid the overhead
of looking up the Methods map for each insert when adding
multiple methods for a single selector when deserializing AST
files. It also allows for modifying the list properties first.