Handle Doctrine proxies correctly in PagerfantaHandler

See #55