Fix JSON (and others) handling in rlm_rest
Two problems
1) The enum for http_body_type had changed, so the indexes being used to
find handlers were off by one - so unless you were really lucky you would
probably get the wrong body parser for the server response.
2) json_object_get_type returns an enum which was being dereferenced as
a pointer (causing a segfault)