Explicitly cast config types on fakebackend.

Better mimics what happens in the real backend. Also fixes code that expects a 'false' config value to be evaluated as false, which is what was causing the original bug.