Fix bug in Configuration#[]= type checking