Fix #226: Handle Path objects gracefully in Context.from_yaml() (#227)