autoGenerate arg from bool to int

For using all four modes of proxies generation, change the 4th arg of
ProxyFactory's constructor to integer
Format code
Merge pull request #893 from yktd26/master

autoGenerate arg from bool to int