Better reference rasterizer triangle bounds test

Added better test for whether a pixel lies within a triangle. Need to
implement "top-left rules" for seamless meshes. Need to implement
z-test. Need to implement perspective-correct texture sampling. Need to
validate against identical OpenGL rendering (including z-buffer
contents). Beyond that, reference rasterizer should be useful for
graphics experiments.