add check that adaptive takestep factor is in (0,1)

This follows our discussion.
AdaptiveTakeStep assumes factor to be greater than 0 and less than 1 and will fail otherwise.