Split options validation into validateOptions, add tests, fix panic on nil alternate color