Fix wrapper options support for boolean types

Fixes issue #1142