Fix generateObjectUrl()

generateObjectUrl() now works correctly when you specify an entity other than the entity of the current admin class.

For example :
In FooAdmin.php

```
generateObjectUrl('list', $bar); // will generate /admin/acme/core/bar/1/list
// previously it generated /admin/acme/core/foo/1/list
```