implemented boost serialization for unspecialized types; fixed some bugs