Add type safety to the Braintree.addListener() and Braintree.removeListener() calls.