Convert dojo/_base/declare tests to intern

What you're describing is, in fact, true. This seems to be a side-effect of `lang.setObject()`. The solution you've come up with is fine.