json_encode: be more particular about identifying assoc-lists

- must be a list
- must be non-empty
- first item must be pair
+ first item of pair must be symbol