Fixed a service collection infinite recursion bug.

This only would have been seen in certain corner cases.
When auto selecting a service collection tag, it would try to use a tag
that it got from a class variable. That class only got included once the
resource it was trying to collect got defined. This accident happened
because I was really looking at the wrong variable for collection.
Added some debugging flags for the interested.

These debugging flags can be turned on during collection. This can be
useful if you want to be sure your resource is getting realized, and
might also help you follow what's going on. Hope it helps.