Made local type vars in stubs private

I renamed the local type vars in the stubs to start with an underscore.

Resolves #452.