autoGenerate arg from bool to int

For using all four modes of proxies generation, change the 4th arg of
ProxyFactory's constructor to integer