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:

https://launchpad.net/bugs/1371789
+1 to being a bit more resilient in the boolean case.