Fix bug where keys and key groups could be on the same line as other
key groups.

And make error messages better when there are nested '[' and ']'
characters in key group names.
Remove \xXX escape sequences and add \uXXXX escape sequences.
Also add formfeed, backsapce and forward slash escape characters.
Version bumps.