Use new JS Map/Set APIs in the serializer
Patch by: Itms (for the most part)
Refs #5860
Differential Revision: https://code.wildfiregames.com/D3146