Finishing legend-sensitive data-set serialization

Extends changes made in PredefinedGraphPanes for [#37445619] and [#] to PredictionGraphPanes and SensorGraphPanes. Note that the included_datasets hashing helper method has been factored back out of sg_graph_pane and into the models themselves due to the relationship naming differences.