test/api/gc-bench: cleanup PN casting mess