Index exported bindings and avoid duplicates

My original idea was to make `exported-bindings` a set, then check if it includes a binding before exporting it, alas I couldn't find a way to test using `=` instead of `==`.