Relaxed the type restrictions on RestSpec.getPathReplacedWith() such that they match the earlier (groovy) contract