module: Assert that require() is called with a string

as requested in #4577