Declaratory relief determined outside of scope of the doctrine of merger