working very hard to get associated objects to work correctly with the templates.

right now cleanup and identify stages are running correctly and producing correct results! Yay!

somewhere after identification, things are getting mucked up.
one small fix in a debugging statement
finally got all the pieces working together to get associated objects' association type to print out.