Changed pickle/unpickle function to work directly on string
Added --lwt option to generate lwt version of pickle/unpickle functions