Pipe generator: Added some asserts.
p4#: 20624