src: add template to AddMethods

Needed to be able to properly resolve the child class.