Fixed #70, and added more robust NULL value handling to set/get lists