overhaul dataitem member calculations, remove duplicate code
add forgotten GetAverageRunLength implementation