fix mset bug (core.matrix issue #90)