fix(ngResource): Add suport for nested params

Allow ngResource to properly construct a query string for params which
have objects or arrays as values.