writer:

Added `max_cache_size` parameter to BulkInserter to limit memory consumption
with large sets of inserts.
calcs/hazard/classical/core:

Use the built-in curve cache limiting functions of BulkInserter.
writer: Fixed a minor var error