Although he is called Alfred during the episode, Leonard Frey's character is listed as Arthur Royce in the credits.
When "Captain" Frank Luger (demoted from Inspector) makes his 1st bust in this episode. Barney goes up and says, "Ah, Inspector!" Barney is well aware of him being a Captain at this point, and should have addressed him as such.