debugging aids; has_dimension and unset_dimension