util: custom inspect functions should receive opts

Objects with custom inpsect functions should get the options that were
passed to `util.inspect()`

fixes #5822