dataview: throw a TypeError if not enough parameters are passed in

This makes the test script run to completion successfully! Yay!