BUG: Use hasattr '_resolve_classes' instead of isinstance(Instance).

Fixes a bug where Sequences of Type didn't have their klass correctly resolved.
Move forward-declaration tests to their own section of test_traitlets.