MULE-7113: Replaced cglib proxies with interface based proxies. Refacored size hint into an interface and decoupled hint size checking from specific implementations.