Support min_num on admin inline forms, per #17642

Replacement pull request for #2406, created to address the issues raised there. More commits coming soon.