allow optional de-duping of objects

would fix #9