fix a bug in __setitem__, and add more tests to npscalardist