Add support for dot notation in lookupOption

Opening this in favor of #959.