fix #4917, better checking of module syntax objects