Fixes the issue #2 that when some yank region were included in command history, undo/redo didn't work properly.

Buffer.prototype.moveCursorAt didn't have proper procedure to move cursor at given position when there is no span.char eleement at the given position. it should be put right after the last span.char in that case.