Fixes a leak of use_backend_type if an unbind/bind sequence is used.

Fixes issue #154.