Declaration file emit for private method overloads 

Adds the tests for #1018