improve pig writer to handle empty bag/tuple/maps

fixes #89