Ufuncs where input is scaled rather than output being recalculated

@astrofrog - a different implementation. More comments soon on the astropy thread.