synapse_pipeline: Added some extra assertions for quicker debugging of bad inputs.