Guessing type from active record

If you have an active record modell with an boolean column, but with an nil value it was not recognised as an boolean. So the x-editable is shown as string instead of boolean select. This is an fix for it.