Fix instance.set for virtual attributes
Change check in virtual attribute check to test against truthy instead of 1 to accomodate for PG
Support for bit fields as boolean storage. Closes #1896