Move gboolean/bool conversions into traits

Signed-off-by: Anton Lofgren <anton.lofgren@gmail.com>