model: fixed python2.6 support
persist: log when encountering an unknown value type, and try to fall back to a default one.