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.
Documented constraints on the function - structs or pointers to structs.