Fix #2, error when using NULL as parameter.
Fix 1, serialize array and object parameters.