Replaced all memcpy () calls for UGL_RECT and UGL_POINT as many bugs on memcpy
sizes was found.