split core declare() processing to independent function,
and add handler for dojox/drawing/util/oo::declare()