Style dict better error message

pull after #268
I could also rewrite the PRs to have this before #268