Add 'const' to all generated methods (they don't change the
ManagedPeer).
Adjust the modifiers and qualifiers applied to methods.