Accept boolean types.
Fix object assignments.