Fix dialyzer with maps_support

jsx (and jsxn) failed to pass dialyzer with maps_support, because json_term() does not conain map() in its type description. This PR fixes the problem by adding map() to json_term() if maps_support is defined.