Specifically checking contract for fromString to prefer states to countries when specifies a 2-character code in Territory.fromString().
Added contract for fromString in comment.