Ensure original value of require_nullability is restored. Added tests.