arrays scale to the given index. needs to get padded with init values for the correct type