Change loglinspace to return last value when n=1.