Improved the snode free function by allowing the elemement free function to be NULL.