Fixed bug with function concatentation routine.

- Consolidated unnecessary compose in function pipeline stage

- Added unit tests for function concatentation routine.

- Simplified polynomial pipeline generation

- Added test for unit pipeline.