Util to test if all ptr fields are nil

This is a lead-up to the volumes-as-plugin PR, which has gotten rather large.
It would be simpler to simply say this function is only valid for structs and pointers to structs.  Acceptable?