Ensure input values are cast correctly.
Fixes silly mistake in neuron-update (division wrong way round).