added _as_hashref methods for stats and stats_tube