Original User: Jian
Mark,
You are right. The scalebar read map unit from the first layer. The next version will read it from the map.spatialReference to determine if this is a projected coordinate system, then decide the unit. Another words, you don't have to specify the unit for your WMS layer. However, I would still encourage to set the correct unit for your layer for the reason of completeness.
Thanks.