Reworked wpsc_get_child_object_in_terms to provide better performance when large number of variations and products
Fixing merge conflicts with wpsc_get_child_object_in_terms() optimizations.