proper handling of order_attribute and order in flat dimensions (including other level attributes); better error message when there is no such order attribute; raise an exception instead of returning None if asked for unknown level attribute