add support to user-defined extension methods for SimpleTemplate