rex_var::toArray(): use ENT_QUOTES, #208
rex_replace_dynamic_contents: fixed return value, closes #185