[Stackmaps] Replace the custom ConstantPool class with a MapVector.
[Stackmaps] Refactor serialization code. No functional change intended.
[Stackmaps] Add command line option to specify the stackmap version.