fixes #4682 - smart variable for a puppet class not showing in UI
fixes #4703 - reset_counters doesn't work for has_many :through relationships on rails 3.2.8