Cast non-string keys to strings (fix #250)

This solves 250 by avoiding a doc warning and instead converting value to strings. It also logs to the console to warn users that this is happening, in case it produces unexpected behavior.