Fix toString override using d instead i for numbers