Calculate document densities
WIP
fixes
fixed tests
col width allocation
block extension/append
chains
fixes
tables