Fixes #266 and #267 which checks yaml input for duplicate keywords