fix case wrapping

loading settings.CASE_WRAPPER at module import caused a circular import (when someone changed something else)

Lesson: always use failhard=True with to_function to avoid masking
errors when things get changed.