Add switching and barrier function materials (#4355)
Register materials and add test (#4355)
Fix indentation, use switch (#4355)
Merge pull request #4357 from dschwen/pfswitch_4355

Add switching and barrier function materials
Merge commit 'd0b237a88f2540248d1ecaaef6c6fcbef7a56845'