Issue803 size estimator

issue #803 add ref. types to sum