compile serialization package
new methods union and intersection for #545