patch rex_var_value to json_encode arrays ..
add PHP < 5.2 json_encode() replacement function from http://pear.php.net/package/Services_JSON/
funcs & class include in separate file ..
use serialize() instead json_encode() .. dump json compat layer
add toArray() method
Merge pull request #75 from jdlx/core/rex_value_array_to_json

[REX_VALUE] array handling (fixes #66)