Fix isNaN usage
Fix naming of Matrix element type to E in harmony with Vector