Fix bug where strings in `default` object are treated as objects