Here are a few examples to demonstrate the problem:
As you can see, the pattern is the same for all format lengths. This is happening because in the iOS plugin code it's iterating over the options dictionary keys, but because order matters, the logic inside the loop is flawed. Here's the block I'm referring to:
The selector key runs first, which relies on the style variable being set correctly, but this doesn't get set until the 2nd iteration of the loop when the formatLength key is evaluated.