assert that dimension argument to push_back is valid