A spate of mutual funds debuted last year that allowed ordinary people to bet on one of the hottest market sectors: energy partnerships. But a quirk in the funds’ tax treatment has made the portfolios perform so unpredictably that investors might want to think twice before diving in.