revert parameter introspection back to just count, add null checks for some pointers
revert parameter introspection back to just count, add null checks for some pointers

sielenk/furnace,sielenk/furnace