Reproducing issue #1616 on query optimizer.
Added test of  workaround in for issue #1616.
Reproducing issue #1616 on query optimizer.
Added test of  workaround in for issue #1616.
Merge branch 'QueryOptimizerIssue1616' of https://github.com/Starcounter/Starcounter into QueryOptimizerIssue1616
Added reproduction of bug #1625.
Query optimizer: fixed the cost overflow bug. Fixed non-determenisitc offsetkey test to handle inserts at the key position. Fixes #1616, fixes #1625.
Merge branch 'develop' of https://github.com/Starcounter/Starcounter into QueryOptimizerIssue1616