bug 1155: add convenience SVSHAPE.is_triangle() function