fix missing runtime array type check identified by LeartS