util: improve prototype inspection using `inspect()` and `showHidden`
The fast path for the prototype inspection had a bug that caused some prototype properties to be skipped that should in fact be inspected.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines