Improved logic for searching dataMin and dataMax, fixes issues related to range and OHLC series