validate the return value of ns()
- for value() do not expose the "path" option (again) as it is really an internal-only feature
- rename attribute() option "validate" to "valid" to be more in sync with similar options
- for params() use the new validate() (which now also supports RegExp and functions) only