Fix related to retarded R behaviour or making arrays from matrices