check function table masks in safe heap mode
improve test_polymorph