Test compile time polymorphism

Added test for ParserItem::equal()