CRM-14478 - Add generic API, "getrefcount"