Correct implementation of Heaviside step function

See: http://en.wikipedia.org/wiki/Heaviside_step_function

Heaviside should return 1 if i > 0, not i.
I presume we expect to maintain type.