fixes D1655 D1660
fixed D1662
made some debug-only things only compile in debug mode
made batched_insert_t not contain a vector of keys
fixed test back