#267 factor out petl.transform.reshape