handle  jsx:encode([{key,value}])

I've made a fix with some tests.

Now it is possible to encode proplists with atoms as values.