updated libraries, improved error message
reworked sum type serialization
updated libraries, adapted code