fix dot product where w is a vector. match type for verb's identity in reduce. add base decode library function.