Add unique support to object ids.

[ fix #41 ]