Metric Dimension of Bounded Tree-length Graphs