Adding _type property each of Customer.addresses

I don't remember: we agree to use "bind" instead of nested functions?
addAddressType.bind(null, customer);
...
function addAddressType(customer, address) {....}