polygons: cleanup isinstance()/type(), add unify()
electrode: draw labels center aligned