Merge pull request #3 from kedder/master

Allow to store objects with explicitly set id
Version increment
- Feature: Allow object state to be stored on the ghost via the
  ``_p_mongo_state`` attribute. This allows some parent object to control
  serialization with lazy loading (most useful for sub-document objects).
Update version to reflect next version and added Andrey's feature to the changelog.
Handle issue with dict comparison bug in Python.

It can happen that comparing similar dicts can cause decode errors. Sigh.
isinstance() matches sub-classes too, which is undesirable at this place.

We want to make sure that only the actual basic, core types are treated
as native types.
Fix bug when storing the simple reduced state.

This feature was earlier added, but this was clearly a bug.
Make sure that get_object() can also be used to de-serialize constants.
Another scenario where looking up the type directly is better.
Fix typo.
Added tests for latest fixes and updated changelog.
Add bool as a mongo-safe type.

Note that bool is a subclass of int, so isinstance() made it work. Wow,
my confidence in isinstance(is really shook right now.
Fix dict serialization with keys that contain dots
Bump dev version number a bit
Pay attention to copy_reg

Fixes the pickling of zope.securitypolicy.settings.{Allow,Deny,Unset},
makes https://github.com/zopefoundation/zope.securitypolicy/pull/1
unnecessary.
Bump version, slightly

This is to make sure I can require mongopersist >= 0.9.0.dev3 and be
sure I've got the persistence bugfix needed for zope.securitypolicy.