updated DebugChemObjectBuilder to use the new DynamicFactory

Change-Id: I30d0ee29ec019d90d34bd3c7a2ef2e8704472ec6
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>