More tuning curve bugfixes!
More tuning curve bugfixes!

two more bugfixes:

 - when bounds is set, we need an initial guess otherwise weird things
   can happen and this is a reasonable one.

 - corrects how we get our x when we have a value for var

billbrod/spatial-frequency-preferences,billbrod/spatial-frequency-preferences,billbrod/spatial-frequency-preferences