fix Issue 9775 - Can no longer create a const Date in CTFE if the variable is explicitly typed