Broken boolean values

Boolean values were saved as stringified versions of the boolean value. Therefore boolean values could not be loaded from the cache  as they introduced pickling errors.