Fixes #8551 - host recieves correct smart_class_parameter value when multiple overrides in inherited Host Groups exist for parameter

@orrabin perhaps just reformat this so it's not a one-liner, but use a multi-line block.  That way you can also store the split in a local variable (`mkey, mvalue = lv.match.split(...)`) instead of doing it twice.  I think it's OK, just a bit long.

@ohadlevy there isn't an each_with_index?