Issue #22060: Clean up/simplify test_ctypes, use test discovery