Bug 978472 - Add support for leak checking in GenericRefCounted classes; r=bjacob