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
This is missing the float type.