make sure custom_data elem in dict works

Makes sure custom data dict 'in' checks work as expected. Fixes #89