Improve commenting of PrimitiveCellTransformation.
Fix minor bug in to_dict.