Specify initial capacity for dictionaries

This should improve responsiveness on Mono since it creates a little
less work for the garbage collector...in theory.
Move case for MethodSig out to its own method overload
Escape ampersand characters in tooltips
Escape doc strings