Fix bug in steptype()

There were two bugs: the function argument shadowed the mode variable, and the semifixed mode would never actually be set.

As [reported](https://groups.google.com/forum/?fromgroups#!topic/craftyjs/Eq4TClc6WCQ) in the forums by Michael Halas.