Reworked wpsc_get_child_object_in_terms to provide better performance when large number of variations and products