There is an small change to the API, the 'tag.target_type' getter has been removed, just use 'tag.target.type' instead.