Revert "upgrade template definitions with latest nan"

This reverts commit 199eacaa745ef68c4f4d5469dd0bb853724fbc8a.