object: don't inherit directly from rtb_rect
rtb_pt_t -> struct rtb_point
move function typedefs out of types.h
rect.h -> geometry.h
move relevant structures from types.h to geometry.h