Fixed some compile warnings on windows with warning level 4, fixed some issues with the JSON serializer, fixed mongo replicable not working correctly with single chars.