Added explicit overload for bool types to kill some warnings.