Removed numerous unnecessary uses of Class.isAssignableFrom(…) and
replaced them with simple instanceofs; in class AlgebraicPhraseParser.