Fix excessive type propagation such as URI(URI(x))