Fixing signed/unsigned mismatch warning
Switching polymorphic factory map to use uint32_t keys, overall serialization overheads are now down to 25%