Fixed handling of bool return types.