Fixed incorrect type for max_length.
Fixed #21543 -- Removed base_dir attribute in StaticFilesHandler.

This code seems to be an artifact of AdminMediaHandler removed in [5c53e30607].
Fixed #21538 -- Added NumPy to test/requirements/base.txt

Thanks Tim Graham for the report