Attempt to fix bug reported by Francis Cianfrocca .  He ran into a case where the value of TYPE(attached) is 9 (T_ARRAY). The code used to check if the attache object was a T_OBJECT - it is now more generalized to check anything that is T_OBJECT or a child.
Attempt to fix bug reported by Francis Cianfrocca .  He ran into a case where the value of TYPE(attached) is 9 (T_ARRAY). The code used to check if the attache object was a T_OBJECT - it is now more generalized to check anything that is T_OBJECT or a child.

git-svn-id: a649f8b53cef7d15963550bf81aeba716f52dec1@77 5fb4a865-4516-0410-ae3b-a609ddf12040

mag/ruby-prof,mag/ruby-prof