Combination of unit and metadata problem

Combination of unit and metadata problem

Our dynamic list widget was not displaying the unit that is associated with the variable.
Then I found out that the metadata addition to the data was causing the issue. Commenting out the metadata solved the issue and the unit was displayed. However, is this behavior intensionally or is that a bug?