Fixed a couple of issues due to moving build files into their own subdir.
Made a warning comment more clear, and refactored to ensure the use of Diagram.ARROWTYPE/LINETYPE.
Added new canvg test file.