dictionary: Make dict_get_weight_format() return by value, not pointer.