Reference Bool Fix

When assigning a reference to a boolean it will preserve the bool type
rather then becoming an int.