Optimized Version.StringComp and Version.NumComp

Also adds tests for both functions