Fixed #23822 -- Added support for serializing model managers in migration

Ticket: https://code.djangoproject.com/ticket/23822

- [x] Implementation
- [x] Documentation
- [x] Tests
Is this something that could be solved by the global-creation-counter pattern that Fields use, or something else?