*fixed a bug where scalar is not deselected in a subpatch after being pasted
*fixed improper paste location for scalars due to incorrect casting of t_scalar to t_text to retrieve its x and y positions