Adds date_priorities as a configuration variable and copes better when when a date type does not exist in the priorities list.
863c25c