nine/vertexdeclaration: fix entry counting and DBG