Added possibility to force proxies to be serializable.