More dynamic_fmt valid() fixes. Still passes Test Suite so should be OK.