Added lifecycle trait with hook to reset statistics.
Merge pull request #6 from typesafehub/in-mem-lifecycle

Added lifecycle trait with hook to reset statistics.