[cvio] template validation bugfixes