Fixes internal step support

fmod is not well-behaved... :anguished:
Fixes mod 0 floating point exception
Merge branch 'mnapoly' into mnak

Conflicts:
	include/circuits/circuit.h
	src/circuits/circuit.cpp