Add ConfigTag::getDuration() with optional bounds checking