Fix filtering during collection of paths in setup.py

Thanks Marek Brzóska for the report.
Fixed #19822 -- Added validation for uniqueness on USERNAME_FIELD on custom User models.

Thanks to Claude Peroz for the draft patch.
Fixed #19829 -- Fixed index lookups for NumPy arrays in templates.
Put unicode_literals into all formats.py
Merge pull request #728 from jphalip/ticket-19829

Fixed #19829 -- Fixed index lookups for NumPy arrays in templates.
Updated FormattingTests test case to use settings contexts
Fixed #19807 -- Sanitized getpass input in createsuperuser

Python 2 getpass on Windows doesn't accept unicode, even when
containing only ascii chars.
Thanks Semmel for the report and tests.