first-price in Scala wrapper: problems with tie-breaking (the_elem {0,0} doesn't work as expected)