use separate struct for just sending #elements in set, and check message size before casting

git-svn-id: https://gnunet.org/svn/gnunet@34446 140774ce-b5e7-0310-ab8b-a85725594a96