Changed the C++ nd::empty interface to match nd.empty in Python