Added support for optionally typed const/local.