lavu/opt: apply range checks also when setting format string value