RavenDB-1438 Fix all compiler warnings from the code

- only 16 warnings left, most of them are TransformResults related, will be working on that now