Fix RuntimeStat's backwards use of WeakHashMap
Use both weak keys and values
Merge pull request #829 from isnotinvain/alexlevenson/RuntimeStatsMemLeak

Fix RuntimeStat's backwards use of WeakHashMap