Explicitly cast config types on fakebackend.
Merge pull request #595 from kadams54/fix-boolean-configs-1371789

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