Added matrices and lists to subsetting.