Compiler: Add reserve if possible on Serializer helper
Compiler: Add reserve if possible on Serializer helper

Summary:
Currently there's no way to reserve the bucket size for different implementations of sets and maps. This adds a runtime check and makes a reserve if the container supports it.

(Note: this ignores all push blocking failures!)

Reviewed By: yfeldblum

Differential Revision: D4969372

fbshipit-source-id: ee53c80cf0f57191d4e47a345ad8b2368f1cc4ba

SergeyMakarenko/fbthrift,SergeyMakarenko/fbthrift,facebook/fbthrift,getyourguide/fbthrift,SergeyMakarenko/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,SergeyMakarenko/fbthrift,facebook/fbthrift,getyourguide/fbthrift,SergeyMakarenko/fbthrift,facebook/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,facebook/fbthrift,SergeyMakarenko/fbthrift,facebook/fbthrift,facebook/fbthrift,SergeyMakarenko/fbthrift,facebook/fbthrift,getyourguide/fbthrift,SergeyMakarenko/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,facebook/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,facebook/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift