Implement multi-level Hash.categorize, as per spec