Blockwise paste: fixed a few corner cases; performance improvements.