lib: changed team_pokemon downcast from dynamic_cast to boost::polymorphic_downcast due to runtime error checking