minor bug in type= method for arrays of unknown element type