Allow strings containing only a variable if they're used as hash keys

Because Puppet's parser < 4.0 only allows strings as hash keys (quoted or unquoted).

#### Relevant issues
 * https://projects.puppetlabs.com/issues/19037
 * https://tickets.puppetlabs.com/browse/PUP-2523

Closes #261