The nation's residency-by-investment program is being scrapped, raising questions for foreigners seeking to move there.