AngularJS formatter/parser is (not) type sensitive

I have a small AngularJS (1.x) directive so my input field does not show the value the is in the model, but formats it before (and parses the user input from the input field’s format): This does not seem to work, the fields always get empty, even though that debugging shows that the conversions are …