Fix type inference failing with custom error types
Fix type inference failing with custom error types

For whatever reason, this pattern (used elsewhere in nom already) works fine,
but the previous style of just letting the `if` statement return does not
provide sufficient type information. Fix for all the str macros affected.

Keruspe/nom,Geal/nom,meh/nom,AndyShiue/nom