Fix is_first setting for array templates