settings: add static asserts that verify that our size calculations are correct