Two redundant checks for a vector’s name in lowercase and uppercase form were removed. They were redundant because the names are always checked in lowercase form. Also the cases of all, allv, alli, and ally were identified more efficiently and the code was made more modular. A special case for current was also handled more efficiently.
This patch with minor improvements can be found in beta_jdm in commit 814ad11461d2aa2683949cd9fe753a7754cdeca0.