Updated AdjustableList.toBuffer to returns keys.