Fix PropType for travis

Travis uses a version of phantom that recognizes the type of a regexp as
a function (callable in certain environments) rather than an object.
This fixes the check.