Also fixes bad check in send_text that could seg fault in send_text And fixes the fact that all freshly allocated userdata's need to be memset