fix #131. ensure we are using the correct deallocator for any glist