Use functools.wraps in default_fallback dectorator

This addresses #1149.