detect_period_format_strict(): add a test to ensure given period is a String
When validating some periods that have been written as integer (instead of strings), the data-model validation script crashes with an unclear error message. I'm not sure this check should be done here. What do you think about @cbenz ?