Fix a bug in TransformGL2D and add transform() function into the Path.