Small changes to Types.fs. Refactored some string methods to real F# code instead of emits. Added some tests