Two minor core changes

Hi,
below are two patches that are rather straight forward. Number one extends the interface of a StackDataSet to obtain its size and capacity and the other one fixes a misleading error message.

Thanks
Andre