parse context if it's a string

fixes MatthewMueller/date#38