Spun out code from generic_fns.pipes.create() into the new check_type() function.
This code will be reused in a new pipe user function.
Authored by: bugman 2012-12-11
Parent: [r18107]
Child: [r18109]