Fix missing use statement to Proxy causing all kinds of weird bugs in UnitOfWork, fixed bug when deleting a proxy.