Polymers and topological field theory