api: check unit name on set operations

since we essentially have two fields where the unit name can be set I think it's safest to take this path and ensure they're the same. I also don't feel strongly about the auto-fill so can remove that if you do.

validateName is dumb right now but anticipating #867....