Serialize null values as empty strings in `$.param()`

Before they would get serialized literally as "null" or "undefined".
Support functions as values in `$.param()`

Each function value will be called to receive the final value to be serialized.
Merge branch 'param-values'

Fixes #988