updated the perl bindings to use the new (replica-aware) interface

note that replicas (aka multiple addresses per node) are still not supported in the perl library
ensure releasing the nodes list