According to the code in `make_node()` either `x` or `y`  can be dense.  You should probably add this check for both cases.