Fixed path.FreeSpecLike's newInstance method wrong type, as well as the same problem in FreeSpecLike.