ENH: Add support for nullable boolean and integers in Stata writers
Add code that allows nullable arrays to be written

closes #40855

- [X] closes #40855
- [X] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [X] whatsnew entry

Seeing a lot of random failures unrelated to this. This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. @jreback I think this is ready, and all green now.
 pls merge master as well thanks @bashtage 