Fixing template export in distributing_factory

the serialize functions for partition_info haven't been exported properly.

This fixes #686