based on my experience with buffering in ArcGIS Desktop, i am under the impression that the entire collection of geometries you pass to the buffer operation of the geometry service must share the same geometry type.
this means that you'll have to submit your polylines in one request and your polygons in another.