fixed handling of length-changing data-datarefs