Enhancement #18: Packet::getLayerOfType() is now a template method