core: pass current prototype state to function's class extensions
basis.data: implement basis.data.ReadOnlyDataset#getValues