Wrapping core's Table::get_name() method for internal use.

@bmunkholm @emanuelez @cmelchior 
Perhaps just add that null is returned if it isn't in any group (or "", whichever is the case)?