more informative error message when unknown keys are present in attribute hash