Added helper to initialize generic array data with single item.