Add type declaration to implementations
Add template stats
Depend on code
Update
Fix a reference bug
Port to new plug-ins