basis.data: use counter for Value#locked instead of true/false, Value#isLocked method implemented
basis.data.index: new index `distinct` that counts unique values in dataset