libraries: replace constrain() with constrain_float()

this makes the type much more obvious. Thanks to Tobias for the
suggestion.
Rover: replaced constrain() with constrain_float()
Copter: replaced constrain() with constrain_float()
Plane: replaced constrain() with constrain_float()
Copter: fixed some uses of constrain_float() to be right type