Added the structure-sharing optimization to the drop-in replacements.
Imported prim-types.fs from the F# source drop.
Implemented structure-sharing optimizations in the equality/comparison functions.