Add type checks to dumptruck init