Fixing #1497 and expanding get_input to handle floats and booleans autom...

...atically.
Shouldn't you use is_bool here?