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

Ticket: https://code.djangoproject.com/ticket/23822

- [x] Implementation
- [x] Documentation
- [ ] Tests (`test_state` is missing)
Using an `OrderedDict` here is required (for default manager detection) but increases the overall test runtime by approx 3 to 5 seconds in total.