Error messages: delayed rendering with templating

type hint for `array`