Decorate the entire library with Eclipse nullability analysis, and remove a few redundant allocations.
Add some tweaks to help with null analysis.